/**
 * (C)2012 Exlu Corporation. All rights reserved.
 * 文件名 : cn.exlu.wea.io.directory.file.FileStringReader.java
 * 注意事項   :
 */
package cn.exlu.wea.tpk.test;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

/**
 * @author Mark 
 * @version 1.0.1
 * 2013-1-23
 * FileStringReader.java
 */
public class FileStringReader {
        private BufferedReader buffReader;
        public FileStringReader(String filePath,String encode) throws FileNotFoundException, UnsupportedEncodingException{
            buffReader=new BufferedReader(new InputStreamReader(new FileInputStream(filePath),encode));
        }

        public String readLine() throws IOException{
            return buffReader.readLine();
        }

        public void close() throws IOException{
            buffReader.close();
        }
}
